package com.babel.util.tools;

import javax.servlet.http.Cookie;

/**
 *
 * cookie
 * Created by yangkang on 2017/7/13.
 */
public class CookieUtil {

    public static Cookie getCookie(String key ,String value,Integer age){
        Cookie cookie = new Cookie(key,value);
        cookie.setMaxAge(age);
        cookie.setPath("/");
        cookie.setDomain("caihang.com");
        return cookie;
    }
}
